//
//  PieChartLayer.h
//  carcareIOS
//
//  Created by ileo on 15/7/8.
//  Copyright (c) 2015年 baozun. All rights reserved.
//

#import <QuartzCore/QuartzCore.h>

@interface PieModel : NSObject

@property (nonatomic, assign) CGFloat value;
@property (nonatomic, strong) UIColor *color;
@property (nonatomic, copy) NSString *title;

@end

@interface PieChartLayer : CALayer

@property (nonatomic, assign) CGFloat maxRadius;
@property (nonatomic, assign) CGFloat minRadius;
@property (nonatomic, assign) CGFloat startAngle;

@property (nonatomic, assign) CGFloat animationDuration;

@property (nonatomic, strong) UIFont *font;

-(void)updateValueModels:(NSArray *)models;

@end